import i18n from '@/locales/index'
const { t } = i18n.global

export const url = {
  // list: '/api/device/station/page',
  groupUrl: '/api/device/master-track/list',
  waterUrl: '/api/device/hanger-line/list',
  waterThreeUrl: '/api/device/hanger-line-bridge/three-level-pull-down',
  stationUrl: '/api/device/station/page',
  update: '/api/device/station/batch-edit',
  trackUrl: '/api/device/master-track/page',
  sync: '/api/system/iot/sync-cloud-data'
  // delete: '/api/basic/order/delete',
}
export const  normalColumns= [
  { title18: 'hangManage.stationNo', dataIndex: 'stationNo', key: 'stationNo', align: 'center', width: 100, fixed: 'left', sorter: true },
  { title18: 'hangManage.trackCode', dataIndex: 'masterTrackId', key: 'masterTrackId', align: 'center', width: 100, fixed: 'left', sorter: true },
  { title18: 'common.direction', dataIndex: 'direction', key: 'direction', align: 'center', width: 100, sorter: true },
  { title18: 'common.startState', dataIndex: 'status', key: 'status', align: 'center', width: 100, sorter: true },
  { title18: 'deviceManage.role', dataIndex: 'role', key: 'role', align: 'center', width: 100, sorter: true },
  { title18: 'deviceManage.waterLineMode', dataIndex: 'lineModel', key: 'lineModel', align: 'center', width: 120, sorter: true },
  { title18: 'deviceManage.intoStationSkewOne', dataIndex: 'inStationOffset1', key: 'inStationOffset1', align: 'center', width: 120, sorter: true },
  { title18: 'deviceManage.intoStationSkewTue', dataIndex: 'inStationOffset2', key: 'inStationOffset2', align: 'center', width: 120, sorter: true },
  { title18: 'deviceManage.intoStationSkewThree', dataIndex: 'inStationOffset3', key: 'inStationOffset3', align: 'center', width: 120, sorter: true },
  { title18: 'deviceManage.outputStationSkew', dataIndex: 'outStationOffset', key: 'outStationOffset', align: 'center', width: 120, sorter: true },
  { title18: 'deviceManage.bridgeSet', dataIndex: 'isBridge', key: 'isBridge', align: 'center', width: 100, sorter: true },
  { title18: 'deviceManage.downLink', dataIndex: 'belowLinkage', key: 'belowLinkage', align: 'center', width: 100, sorter: true },
  { title18: 'deviceManage.loadMonitor', dataIndex: 'loadDetect', key: 'loadDetect', align: 'center', width: 100, sorter: true },
  { title18: 'deviceManage.motorDelay', dataIndex: 'motorDelay', key: 'motorDelay', align: 'center', width: 100, sorter: true },
  { title18: 'deviceManage.outputBuffer', dataIndex: 'outBufferAmount', key: 'outBufferAmount', align: 'center', width: 100, sorter: true },
  { title18: 'deviceManage.intoKeepTime', dataIndex: 'inStationRetentionTime', key: 'inStationRetentionTime', align: 'center', width: 130, sorter: true },
  { title18: 'deviceManage.downDelayTime', dataIndex: 'lowerDelayTime', key: 'lowerDelayTime', align: 'center', width: 130, sorter: true },
  { title18: 'deviceManage.outputSwayWay', dataIndex: 'outStationAntiShakeType', key: 'outStationAntiShakeType', align: 'center', width: 130, sorter: true },
  { title18: 'deviceManage.outputSwayTime', dataIndex: 'outStationAntiShakeTime', key: 'outStationAntiShakeTime', align: 'center', width: 130, sorter: true },
  { title18: 'deviceManage.trackCapacity', dataIndex: 'coatHangerNumberInTrack', key: 'coatHangerNumberInTrack', align: 'center', width: 100, sorter: true },
  { title18: 'deviceManage.stationCapacity', dataIndex: 'capacity', key: 'capacity', align: 'center', width: 100, sorter: true },
  { title18: 'common.remark', dataIndex: 'remark', key: 'remark', align: 'center', width: 100, sorter: true },
  { title18: 'common.operate', dataIndex: 'operate', key: 'operate', align: 'center', width: 180, fixed: 'right' }
]
export const  localColumns= [
  { title18: 'hangManage.stationNo', dataIndex: 'stationNo', key: 'stationNo', align: 'center', width: 100, fixed: 'left', sorter: true },
  { title18: 'hangManage.trackCode', dataIndex: 'masterTrackId', key: 'masterTrackId', align: 'center', width: 100, fixed: 'left', sorter: true },
  { title18: 'common.direction', dataIndex: 'direction', key: 'direction', align: 'center', width: 100, sorter: true },
  { title18: 'common.startState', dataIndex: 'status', key: 'status', align: 'center', width: 100, sorter: true },
  { title18: 'deviceManage.role', dataIndex: 'role', key: 'role', align: 'center', width: 100, sorter: true },
  { title18: 'deviceManage.waterLineMode', dataIndex: 'lineModel', key: 'lineModel', align: 'center', width: 120, sorter: true },
  { title18: 'deviceManage.intoStationSkewOne', dataIndex: 'inStationOffset1', key: 'inStationOffset1', align: 'center', width: 120, sorter: true },
  { title18: 'deviceManage.intoStationSkewTue', dataIndex: 'inStationOffset2', key: 'inStationOffset2', align: 'center', width: 120, sorter: true },
  { title18: 'deviceManage.intoStationSkewThree', dataIndex: 'inStationOffset3', key: 'inStationOffset3', align: 'center', width: 120, sorter: true },
  { title18: 'deviceManage.outputStationSkew', dataIndex: 'outStationOffset', key: 'outStationOffset', align: 'center', width: 120, sorter: true },
  { title18: 'deviceManage.bridgeSet', dataIndex: 'isBridge', key: 'isBridge', align: 'center', width: 100, sorter: true },
  { title18: 'deviceManage.downLink', dataIndex: 'belowLinkage', key: 'belowLinkage', align: 'center', width: 100, sorter: true },
  { title18: 'deviceManage.loadMonitor', dataIndex: 'loadDetect', key: 'loadDetect', align: 'center', width: 100, sorter: true },
  { title18: 'deviceManage.motorDelay', dataIndex: 'motorDelay', key: 'motorDelay', align: 'center', width: 100, sorter: true },
  { title18: 'deviceManage.outputBuffer', dataIndex: 'outBufferAmount', key: 'outBufferAmount', align: 'center', width: 100, sorter: true },
  { title18: 'deviceManage.intoKeepTime', dataIndex: 'inStationRetentionTime', key: 'inStationRetentionTime', align: 'center', width: 130, sorter: true },
  { title18: 'deviceManage.downDelayTime', dataIndex: 'lowerDelayTime', key: 'lowerDelayTime', align: 'center', width: 130, sorter: true },
  { title18: 'deviceManage.outputSwayWay', dataIndex: 'outStationAntiShakeType', key: 'outStationAntiShakeType', align: 'center', width: 130, sorter: true },
  { title18: 'deviceManage.outputSwayTime', dataIndex: 'outStationAntiShakeTime', key: 'outStationAntiShakeTime', align: 'center', width: 130, sorter: true },
  { title18: 'deviceManage.trackCapacity', dataIndex: 'coatHangerNumberInTrack', key: 'coatHangerNumberInTrack', align: 'center', width: 100, sorter: true },
  { title18: 'deviceManage.stationCapacity', dataIndex: 'capacity', key: 'capacity', align: 'center', width: 100, sorter: true },
  { title18: 'common.remark', dataIndex: 'remark', key: 'remark', align: 'center', width: 100, sorter: true }
]
export  const directionArray= [{ "label": t('other.inOutBound'), "value": 0 }, { "label": t('other.inbound'), "value": 1 }, { "label": t('other.outbound'), "value": 2 }]
export const outStationAntiShakeTypeArray= [{ "label": t('other.each'), "value": 0 }, { "label": t('other.theFirst'), "value": 1 }]
export const roleList= [{ "label": t('hangManage.bridgeStation'), "value": "1" }, { "label": t('hangManage.hangerStation'), "value": "2" }, { "label": t('hangManage.sewStation'), "value": "3" }, { "label": t('hangManage.saveStation'), "value": "4" }, { "label": t('hangManage.checkStation'), "value": "5" }, { "label": t('hangManage.emptyHangerStation'), "value": "6" }, { "label": t('other.reworkStation'), "value": "7" }]
export const lineModelList= [{ "label": t('other.markLine'), "value": 1 }, { "label": t('other.markDgLine'), "value": 2 }, { "label": t('other.highLine'), "value": 3 }, { "label": t('other.highDgLine'), "value":4 }]
export const requiredHeader = [
  {key: t('deviceManage.intoStationSkewOne'), value: 'inStationOffset1'},
  {key: t('deviceManage.intoStationSkewTue'), value: 'inStationOffset2'},
  {key: t('deviceManage.intoStationSkewThree'), value: 'inStationOffset3'},
  {key: t('deviceManage.outputStationSkew'), value: 'outStationOffset'},
  {key: t('deviceManage.motorDelay'), value: 'motorDelay'},
  {key: t('deviceManage.outputBuffer'), value: 'outBufferAmount'},
  {key: t('deviceManage.intoKeepTime'), value: 'inStationRetentionTime'},
  {key: t('deviceManage.downDelayTime'), value: 'lowerDelayTime'},
  {key: t('deviceManage.outputSwayWay'), value: 'outStationAntiShakeType'},
  {key: t('deviceManage.outputSwayTime'), value: 'outStationAntiShakeTime'},
  {key: t('deviceManage.trackCapacity'), value: 'coatHangerNumberInTrack'},
  {key: t('deviceManage.stationCapacity'), value: 'capacity'},
  {key: t('deviceManage.role'), value: 'role'},
]